from Po_0902.Page import Page
from Po_0902.Page2 import Page2
from selenium import webdriver
import time,unittest
import yaml
from ddt import ddt,file_data

@ddt
class TaseCase(unittest.TestCase):
    def setUp(self)->None:
        self.driver=webdriver.Firefox()
        self.driver.maximize_window()
        self.driver.implicitly_wait(10)

    def tearDown(self)->None:
        time.sleep(2)
        self.driver.quit()
    file_data(r'D:\gao1\PythonProject4\Po_0902\yamlb.yaml')
    def test_163(self,username,password):
        po=Page(self.driver)
        po.login_163_luoji(username=username,password=password)

    def test_163_02(self):
        po=Page2(self.driver)
        po.luoji_163_xiexin()

if __name__ == '__main__':
    unittest.main()
